package com.ruoyi.yljf.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 启智订单对象 yljf_enlight
 * 
 * @author metaee
 * @date 2025-03-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "yljf_enlight")
public class Enlight extends BasePlusEntity {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 启智订单号 */
    @Excel(name = "启智订单号")
    private String number;

    /** 下单用户id */
    @Excel(name = "下单用户id")
    private Long userId;

    /** 订单状态 1待付款 2已付款 */
    @Excel(name = "订单状态 1待付款 2已付款")
    private Long status;

    /** 绑定id */
    @Excel(name = "绑定id")
    private Long dishId;

    /** 绑定名字 */
    @Excel(name = "绑定名字")
    private String name;

    /** 心愿 */
    @Excel(name = "心愿")
    private String message;

    /** 金额 */
    @Excel(name = "金额")
    private Long amount;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkoutTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

}
